package com.evil.common.mongo.entity;

import com.evil.common.core.entity.BasePage;
import org.springframework.data.domain.Page;

public class MongoPage<T> extends BasePage<T> {

    public MongoPage(Page<T> page) {
        super(page.getNumber(), page.getSize(), page.getTotalPages(), page.getTotalElements(), page.getContent());
    }
}
